Global Index
HTML5 JS API Index > SVG Tutorials & Specs

ElementTimeControl

Extended by SVGAnimationElement, SVGAnimationElement

SMIL Animation supports several methods for controlling the behavior of animation: beginElement(), beginElementAt(), endElement() and endElementAt(). These methods are used to begin and end the active duration of an element.

Operations
void
beginElement()
Creates a begin instance time for the current time. The new instance time is added to the begin instance times list. The behavior of this method is equivalent to beginElementAt(0).
void
beginElementAt(float offset)
Creates a begin instance time for the current time plus the specified offset. The new instance time is added to the begin instance times list. Parametersfloat offset The offset from the current document time, in seconds, at which to begin the element.
void
endElement()
Creates an end instance time for the current time. The new instance time is added to the end instance times list. The behavior of this method is equivalent to endElementAt(0).
void
endElementAt(float offset)
Creates a end instance time for the current time plus the specified offset. The new instance time is added to the end instance times list. Parametersfloat offset offset from the current document time, in seconds, at which to end the element.